<!DOCTYPE html>
<html >
<head>
<title>项目基础信息表</title>
<meta charset="UTF-8">


<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
	<!--<link rel="stylesheet" href="https://cache.amap.com/lbs/static/main1119.css"/>-->
	<!--<script src="https://cache.amap.com/lbs/static/es5.min.js"></script>-->
	<!--<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=93e22b34db78a1c1fd467a663ee7592f&plugin=AMap.ToolBar"></script>-->
	<!--<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>-->
	<!--<script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>-->
</head>
<style type="text/css">



	#outer-box {
		height: 100%;
		padding-right: 300px;
	}

	#container {
		margin-left:600px;
		margin-top:50px;
		width:700px;
		height:400px;
	}

	#panel {
		position: absolute;
		top: 50px;
		bottom: 0;
		right: 0;
		height: 400px;
		overflow: auto;
		width: 300px;

		border-left: 1px solid #eaeaea;
		background: #fff;
	}

	#searchBar {
		height: 30px;
		background: #ccc;
	}

	#searchInput {
		width: 100%;
		height: 30px;
		line-height: 30%;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		border: none;
		border-bottom: 1px solid #ccc;
		padding: 0 5px;
	}

	#searchResults {
		overflow: auto;
		height: calc(400px - 30px);
	}

	.amap_lib_placeSearch,
	.amap-ui-poi-picker-sugg-container {
		border: none!important;
	}

	.amap_lib_placeSearch .poibox.highlight {
		background-color: #CAE1FF;
	}

	.poi-more {
		display: none!important;
	}



</style>

<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">


			<div class="form-group col-sm-3">
				<div class="col-sm-5 control-label">项目类型</div>
				<div class="col-sm-7">
					<select class="form-control" v-model="q.pBType"  placeholder="项目类型"   >
						<option value="">
							全部</option>
						<option v-for="d in progect_type" :value="d.dKey">
							{{d.dValue}}</option>
					</select>
				</div>

			</div>

			<div class="form-group col-sm-3">
				<div class="col-sm-5 control-label">储备状态</div>
				<div class="col-sm-7">
					<select class="form-control" v-model="q.pBHive"  placeholder="储备状态">
						<option value="">
							全部</option>
						<option v-for="d in project_hivetype" :value="d.dKey">
							{{d.dValue}}</option>
					</select>
				</div>

			</div>
			<div class="form-group col-sm-3">
				<div class="col-sm-5 control-label">项目状态</div>
				<div class="col-sm-7">
					<select class="form-control" v-model="q.pBState"  placeholder="项目状态">
						<option value="">
							全部</option>
						<option v-for="d in project_state" :value="d.dKey">
							{{d.dValue}}</option>
					</select>
				</div>

			</div>

			<div class="form-group col-sm-3">
				<input type="text"  class="form-control" v-model="q.pBName" @keyup.enter="query" placeholder="项目名称">
			</div>





		</div>
		<a class="btn btn-default" @click="reload">查询</a>
		<a v-if="hasPermission('bss:apbase:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
		<a v-if="hasPermission('bss:apbase:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
		<a v-if="hasPermission('bss:apbase:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		<a  class="btn btn-primary" @click="gotosg"><i class="fa fa-pencil-square-o"></i>&nbsp;进入施工项目</a>
		<a  class="btn btn-primary" @click="gotoys"><i class="fa fa-pencil-square-o"></i>&nbsp;进入验收项目</a>

		<table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">

		<div class="panel-heading">{{title}}
			</div>
		<form class="form-horizontal">

				<div class="form-group">
			   	<div class="col-sm-2 control-label">项目类型</div>
			   	<div class="col-sm-10">
			      <!--<input type="text" class="form-control" v-model="aPBase.pBType" placeholder="项目类别   数据字典  progect_type"/>-->
					<select class="form-control" v-model="aPBase.pBType">
						<option v-for="f in progect_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">业务类型</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="aPBase.pBCategory" placeholder="业务类型 数据字典 category_type"/>-->
					<select class="form-control" v-model="aPBase.pBCategory" >
						<option v-for="f in category_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
				</div>
			</div>


			<div class="form-group" hidden="true">
			   	<div class="col-sm-2 control-label">项目状态</div>
			   	<div class="col-sm-10">
			      <!--<input type="text" class="form-control" v-model="aPBase.pBState" placeholder="项目状态  数据字典 project_state (踏勘、估算调整、归档)"/>-->
					<select class="form-control" v-model="aPBase.pBState">
						<option v-for="f in project_state" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
			     </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">项目名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="aPBase.pBName" placeholder="项目名称"   />
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">项目地址</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="aPBase.pBAddress" placeholder="项目地址"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-2 control-label">最高电压等级</div>
			   	<div class="col-sm-10">
			      <!--<input type="text" class="form-control" v-model="aPBase.pBVoltage" placeholder="最高电压等 数据字典 voltage_type(10kV,380V,220V)"/>-->
					<select class="form-control" v-model="aPBase.pBVoltage">
						<option v-for="f in voltage_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
			     </div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">是否作图</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="aPBase.pBVoltage" placeholder="最高电压等 数据字典 voltage_type(10kV,380V,220V)"/>-->
					<select class="form-control" v-model="aPBase.isDraw">
						<option v-for="f in status" :value="f">
							{{f}}
						</option>
					</select>
				</div>
			</div>

			<result property="" column="is_draw"/>

									<div class="form-group">
			   	<div class="col-sm-2 control-label">参与人</div>

			      <!--<input type="text" class="form-control" v-model="aPBase.pBCollectid" placeholder="参与人 "/>-->
					<div class="col-sm-10">
						<label v-for="r in userallmy" class="checkbox-inline">
							<input type="checkbox" :value="r.userId" v-model="aPBase.pBCollectid">{{r.username}}
						</label>
					</div>

			</div>


			<div class="form-group">
			   	<div class="col-sm-2 control-label">项目申请书名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="aPBase.pBBookname" placeholder="项目申请书名称" />
			    </div>
			</div>
			<div class="form-group">
				<div id="outer-box">
					<div id="container" class="map" tabindex="0"></div>
					<div id="panel" class="scrollbar1">
						<div id="searchBar">
							<input id="searchInput" placeholder="输入关键字搜素POI" />
						</div>
						<div id="searchResults"></div>
					</div>
				</div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>

		</form>



	</div>


</div>
<!--<script type="text/javascript">-->
    <!--//初始化地图对象，加载地图-->

<!--</script>-->
<script src="../../js/modules/bss/apbase.js"></script>
</body>
</html>